/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.blockchain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 账户
 *
 * @author pigx code generator
 * @date 2022-06-23 15:31:52
 */
@Data
@TableName("account")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "账户")
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Account extends Model<Account> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 链id
     */
    @ApiModelProperty(value="链id")
    private Long chainId;

    /**
     * userId
     */
    @ApiModelProperty(value="userId")
    private Long userId;

    /**
     * 账户名称
     */
    @ApiModelProperty(value="账户名称")
    private String name;

    /**
     * 账户地址
     */
    @ApiModelProperty(value="账户地址")
    private String address;

    /**
     * 私钥
     */
    @ApiModelProperty(value="私钥")
    private String privateKey;

    /**
     * 公钥
     */
    @ApiModelProperty(value="公钥")
    private String publicKey;

    /**
     * 助记词
     */
    @ApiModelProperty(value="助记词")
    private String mnemonic;

    /**
     * 是否接入官方ddc
     */
    @ApiModelProperty(value="是否接入官方ddc")
    private Integer isOpenDdc;

    /**
     * 上传链账户地址模式:3,
     */
    @ApiModelProperty(value="上传链账户地址模式:3,")
    private Integer opbKeyType;

    /**
     * 平台方账户为 1，终端账户为 2
     */
    @ApiModelProperty(value="平台方账户为 1，终端账户为 2")
    private Integer opbChainClientType;

    /**
     * 运营方设置状态(0=未接入官方ddc 合约 1=冻结 2=已启用(未冻结) 3=冻结中 4=解冻中)
     */
    @ApiModelProperty(value="运营方设置状态(0=未接入官方ddc 合约 1=冻结 2=已启用(未冻结) 3=冻结中 4=解冻中)")
    private Integer opsPlatformState;

    /**
     * 平台方设置状态(0=未接入官方ddc 合约 1=冻结 2=已启用(未冻结) 3=冻 结中 4=解冻中)
     */
    @ApiModelProperty(value="平台方设置状态(0=未接入官方ddc 合约 1=冻结 2=已启用(未冻结) 3=冻 结中 4=解冻中)")
    private Integer platformState;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private String updateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 删除标志
     */
    @ApiModelProperty(value="删除标志")
    private String delFlag;

}
